using Net35.Xrm.Sdk.Client;
using System;
using System.Collections.ObjectModel;
using System.Linq;
namespace Net35.Xrm.Sdk
{
	public sealed class SaveChangesResultCollection : Collection<SaveChangesResult>
	{
		public SaveChangesOptions Options
		{
			get;
			private set;
		}
		public bool HasError
		{
			get
			{
				return this.Any((SaveChangesResult result) => result.Error != null);
			}
		}
		internal SaveChangesResultCollection(SaveChangesOptions options)
		{
			this.Options = options;
		}
	}
}
